package fingerGussingGame2;

import java.util.Scanner;

public class People extends Player
{
	Scanner scanner=new Scanner(System.in);
	public People(String name )
	{
		super(name);
	}

	/**
	 * 人出拳，需要输入
	 */
	@Override
	public Option showFirst()
	{
		System.out.println("请输入选项：1.剪刀 2.石头 3.布");
		int num=scanner.nextInt();
		Option opt=null;
		if(num==Option.SCISSORS.getValue())
		{
			opt=Option.SCISSORS;
		}else if (num == Option.ROCK.getValue())
		{
			opt=Option.ROCK;
		} else if(num == Option.PAPER.getValue())
		{
			opt=Option.PAPER;
		}
		System.out.println(getName()+"出："+ opt.getNameString());
		return opt;
	}

}
